package com.itheima.pojo;

public class Movie {

    private String name;
    private String director;
    private String profile;
    private int duration;
    private String actor;


    public Movie() {
    }

    public Movie(String name, String director, String profile, int duration, String actor) {
        this.name = name;
        this.director = director;
        this.profile = profile;
        this.duration = duration;
        this.actor = actor;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getDirector() {
        return director;
    }

    public void setDirector(String director) {
        this.director = director;
    }

    public String getProfile() {
        return profile;
    }

    public void setProfile(String profile) {
        this.profile = profile;
    }

    public int getDuration() {
        return duration;
    }

    public void setDuration(int duration) {
        this.duration = duration;
    }

    public String getActor() {
        return actor;
    }

    public void setActor(String actor) {
        this.actor = actor;
    }


    @Override
    public String toString() {
        return "电影:"+ getName()+"\n"+
                "导演:"+getDirector()+"\n"+
                "主演:"+getActor()+"\n"+
                "简介:"+getProfile()+"\n";

    }
}
